import request from '@/utils/request'

export function Login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

export function userRegister(data) {
  return request({
    url: '/user/register',
    method: 'post',
    data
  })
}

export function getUserInfo(data) {
  return request({
    url: '/user',
    method: 'get',
    prams:data
  })
}

export function update(data) {
  return request({
    url: '/user',
    method: 'put',
    data
  })
}
//修改密码
export function updatePass(data) {
  return request({
    url: '/user/updatePass',
    method: 'put',
    data
  })
}

//获取用户基本信息
export function getBasicInfo() {
  return request({
    url: '/user/basic',
    method: 'get',
  })
}
//修改基本信息

export function updateBasicInfo(data) {
  return request({
    url: '/user/basic',
    method: 'put',
    data
  })
}

